package br.edu.delta.bo;

import javax.ejb.EJB;

import br.edu.delta.dao.EmprestimoDAO;
import br.edu.delta.model.Emprestimo;
import br.edu.delta.model.Leitor;


/**
 * <p>
 * <b>Title:</b> EmprestimoBO
 * </p>
 * 
 * <p>
 * <b>Description:</b> EmprestimoBO
 * </p>	
 * 	
 * <p>	
 * <b>Company: </b> 
 * </p>	
 * 	
 * @author Denis
 * 
 * @version 1.0.0
 */
public class EmprestimoBO extends AppBO<Emprestimo> {

	/** Atributo serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/** Atributo dao. */
	@EJB
	private EmprestimoDAO dao;

	/**
	 * @see br.com.javagyn.bo.base.AppBO#getDao()
	 */
	@Override
	public EmprestimoDAO getDao() {

		return this.dao;
	}

	public Emprestimo obterEmprestimo(Leitor leitor) {

		return this.getDao().obterEmprestimo(leitor);
	}

}
